package com.cn.xiaonuo.slbfinances.slbagents.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface SlbOperationsMapper extends BaseMapper<String> {
    /**
     * 调用搜了宝存储过程
     * @param userId
     * @return
     */
    public Map<String, String> getSlbProxyData(
            @Param("userId") String userId
    );

    /**
     * 获取代理购买金额
     * @param userId
     * @param beginTime
     * @param endTime
     * @return
     */
    public  List<Map<String,String>> getSlbProxyBuyAmount(
            @Param("userId") String userId,
            @Param("beginTime") String beginTime,
            @Param("endTime") String endTime
    );

}
